<html>
<head><meta charset="utf-8"><title>cargo build failure? · t-infra · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/index.html">t-infra</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/cargo.20build.20failure.3F.html">cargo build failure?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="223884419"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/cargo%20build%20failure%3F/near/223884419" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/cargo.20build.20failure.3F.html#223884419">(Jan 25 2021 at 11:37)</a>:</h4>
<p>FYI, I am seeing a strange cargo build failure on bors that I cannot make sense of: <a href="https://github.com/rust-lang/rust/pull/81375#issuecomment-766747227">https://github.com/rust-lang/rust/pull/81375#issuecomment-766747227</a></p>



<a name="223886115"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/cargo%20build%20failure%3F/near/223886115" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/cargo.20build.20failure.3F.html#223886115">(Jan 25 2021 at 11:55)</a>:</h4>
<p>and the same failure also occured at <a href="https://github.com/rust-lang/rust/pull/81327#issuecomment-766762024">https://github.com/rust-lang/rust/pull/81327#issuecomment-766762024</a>, so this seems sytematic</p>



<a name="223886319"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/cargo%20build%20failure%3F/near/223886319" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/cargo.20build.20failure.3F.html#223886319">(Jan 25 2021 at 11:57)</a>:</h4>
<p>is something not using a lockfile or how is that even possible?</p>



<a name="223886323"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/cargo%20build%20failure%3F/near/223886323" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/cargo.20build.20failure.3F.html#223886323">(Jan 25 2021 at 11:57)</a>:</h4>
<p>Cc <span class="user-mention" data-user-id="121055">@Pietro Albini</span></p>



<a name="223886920"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/cargo%20build%20failure%3F/near/223886920" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/cargo.20build.20failure.3F.html#223886920">(Jan 25 2021 at 12:01)</a>:</h4>
<p>a new serde was released earlier today, so that might be the issue here (if there truly is no lockfile)</p>



<a name="223887082"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/cargo%20build%20failure%3F/near/223887082" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/cargo.20build.20failure.3F.html#223887082">(Jan 25 2021 at 12:02)</a>:</h4>
<p>this is the build failure:</p>
<div class="codehilite"><pre><span></span><code>2021-01-25T11:49:45.1684434Z error[E0283]: type annotations needed
2021-01-25T11:49:45.1686564Z    --&gt; src/cargo/util/config/de.rs:530:63
2021-01-25T11:49:45.1687399Z     |
2021-01-25T11:49:45.1692181Z 530 |                 seed.deserialize(Tuple2Deserializer(1i32, env.as_ref()))
2021-01-25T11:49:45.1694780Z     |                                                           ----^^^^^^--
2021-01-25T11:49:45.1695657Z     |                                                           |   |
2021-01-25T11:49:45.1696943Z     |                                                           |   cannot infer type for type parameter `T` declared on the trait `AsRef`
2021-01-25T11:49:45.1698411Z     |                                                           this method call resolves to `&amp;T`
2021-01-25T11:49:45.1699315Z     |
2021-01-25T11:49:45.1700515Z     = note: cannot satisfy `std::string::String: AsRef&lt;_&gt;`
2021-01-25T11:49:45.1701904Z help: use the fully qualified path for the potential candidates
2021-01-25T11:49:45.1702970Z     |
2021-01-25T11:49:45.1704977Z 530 |                 seed.deserialize(Tuple2Deserializer(1i32, &lt;std::string::String as AsRef&lt;OsStr&gt;&gt;::as_ref(env)))
2021-01-25T11:49:45.1706548Z     |                                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2021-01-25T11:49:45.1708246Z 530 |                 seed.deserialize(Tuple2Deserializer(1i32, &lt;std::string::String as AsRef&lt;std::path::Path&gt;&gt;::as_ref(env)))
2021-01-25T11:49:45.1709831Z     |                                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2021-01-25T11:49:45.1711662Z 530 |                 seed.deserialize(Tuple2Deserializer(1i32, &lt;std::string::String as AsRef&lt;str&gt;&gt;::as_ref(env)))
2021-01-25T11:49:45.1713187Z     |                                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2021-01-25T11:49:45.1714776Z 530 |                 seed.deserialize(Tuple2Deserializer(1i32, &lt;std::string::String as AsRef&lt;[u8]&gt;&gt;::as_ref(env)))
2021-01-25T11:49:45.1716296Z     |                                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2021-01-25T11:49:45.1716878Z
</code></pre></div>



<a name="223887770"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/cargo%20build%20failure%3F/near/223887770" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/cargo.20build.20failure.3F.html#223887770">(Jan 25 2021 at 12:10)</a>:</h4>
<p>huh that's <em>really</em> weird</p>



<a name="223887952"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/cargo%20build%20failure%3F/near/223887952" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/cargo.20build.20failure.3F.html#223887952">(Jan 25 2021 at 12:12)</a>:</h4>
<p>oh got it</p>



<a name="223887975"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/cargo%20build%20failure%3F/near/223887975" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/cargo.20build.20failure.3F.html#223887975">(Jan 25 2021 at 12:12)</a>:</h4>
<p>that's happening during the PGO compilations</p>



<a name="223887978"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/cargo%20build%20failure%3F/near/223887978" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/cargo.20build.20failure.3F.html#223887978">(Jan 25 2021 at 12:12)</a>:</h4>
<p><span class="user-mention" data-user-id="116122">@simulacrum</span> <span class="user-mention" data-user-id="120791">@RalfJ</span></p>



<a name="223888205"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/cargo%20build%20failure%3F/near/223888205" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/cargo.20build.20failure.3F.html#223888205">(Jan 25 2021 at 12:15)</a>:</h4>
<p>opened <a href="https://github.com/rust-lang/rust/issues/81378">https://github.com/rust-lang/rust/issues/81378</a> to track this</p>



<a name="223888592"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/cargo%20build%20failure%3F/near/223888592" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/cargo.20build.20failure.3F.html#223888592">(Jan 25 2021 at 12:19)</a>:</h4>
<p>ok, yeah, we're building cargo from its directory, but cargo doesn't have a lockfile in its git repo</p>



<a name="223889329"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/cargo%20build%20failure%3F/near/223889329" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/cargo.20build.20failure.3F.html#223889329">(Jan 25 2021 at 12:26)</a>:</h4>
<p>working on a patch</p>



<a name="223889980"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/cargo%20build%20failure%3F/near/223889980" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/cargo.20build.20failure.3F.html#223889980">(Jan 25 2021 at 12:32)</a>:</h4>
<p>Interesting - unexpected problem. Probably in any case <span class="user-mention" data-user-id="119235">@David Tolnay</span> might want to yank?</p>



<a name="223890215"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/cargo%20build%20failure%3F/near/223890215" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/cargo.20build.20failure.3F.html#223890215">(Jan 25 2021 at 12:34)</a>:</h4>
<p><span class="user-mention" data-user-id="116122">@simulacrum</span> will have a PR open in a minute</p>



<a name="223890268"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/cargo%20build%20failure%3F/near/223890268" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/cargo.20build.20failure.3F.html#223890268">(Jan 25 2021 at 12:34)</a>:</h4>
<p>Thanks! I'm just waking up, but can review in ~15 probably.</p>



<a name="223890290"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/cargo%20build%20failure%3F/near/223890290" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/cargo.20build.20failure.3F.html#223890290">(Jan 25 2021 at 12:35)</a>:</h4>
<p><span class="user-mention" data-user-id="116122">@simulacrum</span> good morning!</p>



<a name="223890297"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/cargo%20build%20failure%3F/near/223890297" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/cargo.20build.20failure.3F.html#223890297">(Jan 25 2021 at 12:35)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/pull/81380">https://github.com/rust-lang/rust/pull/81380</a></p>



<a name="223913645"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/cargo%20build%20failure%3F/near/223913645" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/cargo.20build.20failure.3F.html#223913645">(Jan 25 2021 at 15:36)</a>:</h4>
<p>reopened the tree</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>